home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / Core 18⁄March⁄1994 / MenuController.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-09  |  1.2 KB  |  47 lines  |  [TEXT/KAHL]

  1. /* MenuController.h */
  2.  
  3. #pragma once
  4.  
  5. /* required definitions:  */
  6. enum
  7.     {
  8.         mNoItem = 0,
  9.         mEditCut = 0x0001,
  10.         mEditPaste = 0x0002,
  11.         mEditCopy = 0x0003,
  12.         mEditClear = 0x0004,
  13.         mFileNew = 0x0005,
  14.         mFileOpen = 0x0006,
  15.         mFileClose = 0x0007,
  16.         mFileSave = 0x0008,
  17.         mFileSaveAs = 0x0009,
  18.         mFileQuit = 0x000a,
  19.         mFilePageSetup = 0x000b,
  20.         mFilePrint = 0x000c,
  21.         mEditUndo = 0x000d,
  22.         mEditSelectAll = 0x000e,
  23.         mAppleAbout = 0x000f,
  24.         mFontSelected = 0x0010
  25.     };
  26.  
  27.  
  28. void        InitMyMenus(void);
  29. void        ShutDownMyMenus(void);
  30. void        MyEnableItem(short ItemID);
  31. void        MyDisableItem(short ItemID);
  32. void        MySetItemMark(short ItemID, char ItemMark);
  33. short        CreateMenu(Handle Name);
  34. short        CreateHierarchicalMenu(Handle Name);
  35. short        AddItemToMenu(short MenuID, Handle ItemName, char ItemShortcut);
  36. void        DeleteItemFromMenu(short ItemID);
  37. void        MyDeleteMenu(short MenuID);
  38. void        PostMenuToBar(short MenuID);
  39. void        RemoveMenuFromBar(short MenuID);
  40. short        MenuMouseDown(EventRecord* TheEvent); /* track the menu request */
  41. short        MenuKeyDown(EventRecord* TheEvent);  /* decode command key equivalent */
  42. void        Reconstruct(short MenuID);
  43. void        ChangeName(short ItemID, Handle NewName);
  44. short        AddFontMenu(void);
  45. short        GetLastFontID(void);
  46. void        SetFontMark(short FontID);
  47.